function showlashen(){
	var a=document.getElementById("yincang");
	var b=document.getElementById("yincang1");
	if(a.style.display=="none"){
		a.style.display="block";
		b.style.display="none";
	}
	else{
		a.style.display="none";
		b.style.display="block";
	}
}
function showlashen2(){
	var b=document.getElementById("issue-yin");
	if(b.style.display=="none"){
		b.style.display="block";
	}
	else{
		b.style.display="none";
	}
}
function showlashen3(){
	var c=document.getElementById("yincang1")
	if(c.style.display=="none"){
		c.style.display="block";
	}
	else{
		c.style.display="none";
	}
}

function showopen(a1){
	var aa=document.getElementById("huilai"+a1);
	var bb=document.getElementById("huila"+a1);
	
	if(aa.className==('class-opens')){
		aa.classList.remove('class-opens');
		bb.classList.remove('ring-huan');
		aa.classList.add('ring-huilai');
		bb.classList.add('ring-color');
	}
	else{
		aa.classList.remove('ring-huilai');
		bb.classList.remove('ring-color');
		aa.classList.add('class-opens');
		bb.classList.add('ring-huan');
	}
}

function showopen1(){
	var cc=document.getElementById("huilai3");
	var dd=document.getElementById("huila3");
	if(cc.className==('class-opens1')){
		cc.classList.remove('class-opens1');
		dd.classList.remove('ring-huan1');
	}
	else{
		cc.classList.add('class-opens1');
		dd.classList.add('ring-huan1');
	}
}

function changeImage(){
	var a=document.getElementById("image");
	if(a.src.match("recuit3")){
		a.src="../img/activity/recruit/recuit2.png";
	}
	else{
		a.src="../img/activity/recruit/recuit3.jpg";
	}
	
	var b=document.getElementById("recruit-font");
	if(b.innerHTML == "《我像特工嘛》"){
		b.innerHTML="《我不是特工》";
	}
	else{
		b.innerHTML="《我像特工嘛》";
	}
	
}
function showclass(a1){
	var c1=document.getElementById("issue-xuanze"+a1);
	var d1=document.querySelectorAll(".issue-sex-class");
	if(d1){
		for(i=0;i<d1.length;i++){
			d1[i].classList.add("issue-sex1");
			d1[i].classList.remove("issue-sex-class");
			
		}
	}
	
		c1.className="issue-sex-class";
	
	
	
	
}

function showhuan(a2,a1){
	var a3 = parseInt(a2);
	var b1 = document.getElementById("jingxuan");
	var b2 = document.getElementById("quanbu");
	
	if(a1.className=="can-quan-bottom"){
		
	}
	else{
		document.querySelector(".can-quan-bottom").classList.remove("can-quan-bottom");
		a1.classList.add("can-quan-bottom");
		if(a3==2){
			b1.style.display = "block";
			b2.style.display = "none";
		}
		else{
			b1.style.display = "none";
			b2.style.display = "block";
		}
	}
	
}

function pagechange(a1,a2){
	var b2 = parseInt(a2);
//	alert(b2)
	if(b2==0){
		if(document.querySelector(".paperback_frontt")){
			a1.classList.remove("paperback_frontt");
			document.querySelector(".book").classList.remove("bookk");
		}
		else{
			a1.classList.add("paperback_frontt");
			document.querySelector(".book").classList.add("bookk");
		}
		
	}
	else{
		if(document.querySelector(".ruled_paper-item" + a2)){
			a1.classList.remove("ruled_paper-item"+b2);
		}
		else{
			a1.classList.add("ruled_paper-item"+b2);
		}
	}
	
}

function musicplay(){
	var a1 = document.querySelector("#music-audio");
	if(document.querySelector(".music-play")){
		document.querySelector(".music-play").classList.remove("music-play");
		document.querySelector(".music-open-play").classList.remove("music-open-play");
		document.querySelector(".music-cd1").classList.remove("music-cd1");
		a1.pause();
	}
	else{
		document.getElementById("music-pic").classList.add("music-play");
		document.getElementById("music-pic-play").classList.add("music-open-play");
		document.querySelector(".music-cd").classList.add("music-cd1");
		a1.play();
	}
}

function videoplay(){
	var a1 = document.querySelector("video");
	if(document.querySelector(".flashh")){
		document.querySelector(".flashh").classList.remove("flashh");
		document.querySelector(".flash-play").style.opacity=1;
		a1.pause();
	}
	else{
		document.querySelector(".flash").classList.add("flashh");
		document.querySelector(".flash-play").style.opacity=0;
		a1.play();
	}
}

function checktag1(a1){
	var l1 = document.getElementsByClassName("liactive").length;
	if(l1<3){
		if(a1.classList.length==0){
			a1.classList.add("liactive");
		}
		else{
			a1.classList.remove("liactive");
		}
	}
	else if(a1.classList.length==1){
		a1.classList.remove("liactive");
	}
	else{
		alert("最多选3个");
	}
	
}

function checktag2(a1){
	var l1 = document.getElementsByClassName("liactive1").length;
	if(l1<6){
		if(a1.classList.length==0){
			a1.classList.add("liactive1");
		}
		else{
			a1.classList.remove("liactive1");
		}
	}
	else if(a1.classList.length==1){
		a1.classList.remove("liactive1");
	}
	else{
		alert("最多选6个");
	}
}

function recruitfonta(a1){
	if(a1.classList.length<2){
		a1.classList.add("recruitfonta");
	}
	
}

function clickicon(c1){
	var c2 = parseInt(c1);
	var d = document.getElementsByClassName("fenxiang");
	if(d[c2].classList.length==1){
		d[c2].classList.add("fenxiangg");
	}
	else{
		d[c2].classList.remove("fenxiangg");
	}
}


function showxiala(){
	var d1 = document.querySelector(".cPweb");
	d1.classList.remove("cPweb1");
}

function closecP(){
	var d1 = document.querySelector(".cPweb");
	d1.classList.add("cPweb1");
}
